//
//  DB_Collect.h
//  LPSNews
//
//  Created by Ruan on 14-10-21.
//  Copyright (c) 2014年 LPS. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FMDB.h"
#import "FilePathManager.h"
#import "CollectDataMode.h"

@interface DB_Collect : NSObject

@property(nonatomic ,assign)FMDatabaseQueue *fmdbQueue;
@property (nonatomic, retain) CollectDataMode * collectData;

// 打开数据库
- (void)openCollectDB;

// 插入数据库
- (void)insertCollectDataWithDocid:(NSString *)docid Title:(NSString *)title Ptime:(NSString *)ptime Body:(NSString *)body Imagecount:(NSNumber *)imagecount;

// 按要求查询数据
- (CollectDataMode *)selectCollectDataWithDocid:(NSString *)docid;

// 查询所有数据
- (NSMutableArray *)selectAllCollectData;

// 按要求删除收藏的
- (void)deleteCollectDataWithDocid:(NSString *)docid;

// 判断文件是否存在
- (BOOL)collectDataisExistsDocid:(NSString *)docid;

@end
